#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
常量配置
作者：adnaan
"""

# 应用信息
APP_NAME = "拾取窗中流光"
APP_VERSION = "2.0"
APP_AUTHOR = "adnaan"

# Socket.IO 配置
DEFAULT_SERVER_URL = "http://localhost:8200"
DEFAULT_AUTH_KEY = "duyong-socket-328"
CONNECTION_TIMEOUT = 15.0
MAX_RECONNECT_ATTEMPTS = 15
RECONNECT_BASE_DELAY = 2.0
MAX_RECONNECT_DELAY = 60.0

# 心跳配置
HEARTBEAT_INTERVAL = 30.0
HEARTBEAT_TIMEOUT = 90.0

# 监控配置
MONITOR_INTERVAL = 1.0
STATUS_DEBOUNCE_DELAY = 2.0
STATUS_LOG_INTERVAL = 120.0

# 日志配置
MAX_LOG_LINES = 1000
LOG_BATCH_DELETE = 100
LOG_QUEUE_MAXSIZE = 500
LOG_UPDATE_INTERVAL = 500

# UI 配置
WINDOW_WIDTH = 1100
WINDOW_HEIGHT = 750
MIN_WINDOW_WIDTH = 900
MIN_WINDOW_HEIGHT = 600

# 菜单更新间隔
MENU_UPDATE_INTERVAL = 3.0

# 自动启动延迟
AUTO_START_DELAY = 2.0

# 进程扫描配置
MAX_PROCESS_NAME_LENGTH = 100
PROCESS_SCAN_CACHE_TIME = 5.0

